package com.zhouyihe.weblog.web;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author 周益和
 * @ClassName WeblogWebApplication
 * @qq 1552951165
 */
@SpringBootApplication
@ComponentScan({"com.zhouyihe.weblog.*"}) // 多模块项目中，必需手动指定扫描 com.zhouyihe.weblog 包下面的所有类
@EnableScheduling // 启用定时任务
public class WeblogWebApplication {
    public static void main(String[] args) {
        SpringApplication.run(WeblogWebApplication.class, args);
    }
}
